package com.dearbinge.data.pojo.cart;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 商城购物车表
 * @author cl
 * @date 2019/1/4
 */

@Api("商城购物车表")
@TableName("cart")
public class Cart extends Model<Cart> {
    /**
     * 购物车ID
     */
    @ApiModelProperty("id")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 店铺ID
     */
    @ApiModelProperty("店铺ID")
    @TableId(value = "shop_id")
    private Integer shopId;

    /**
     * 商品ID
     */
    @ApiModelProperty("商品ID")
    @TableField(value = "commodity_id")
    private String commodityId;

    /**
     * 商品规格id
     */
    @ApiModelProperty("商品规格id")
    @TableField(value = "commodity_spec_id")
    private String commoditySpecId;

    /**
     * 商品数量
     */
    @ApiModelProperty("total")
    @TableField(value = "total")
    private Integer total;

    /**
     * 商品来源 0代理 1非代理
     */
    @ApiModelProperty("商品来源 0代理 1非代理")
    @TableField(value = "source")
    private Integer source;

    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    @TableField(value = "user_id")
    private String userId;

    /**
     * 卖货人用户ID
     */
    @ApiModelProperty("卖货人用户ID")
    @TableField(value = "sell_user_id")
    private String sellUserId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    @TableField(value = "modify_time")
    private Date modifyTime;

    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 修改人
     */
    @ApiModelProperty("修改人")
    @TableField(value = "modify_by")
    private String modifyBy;

    /**
     * 是否删除（0：否  1：是）
     */
    @ApiModelProperty("是否删除（0：否  1：是）")
    @TableField(value = "is_deleted")
    private Boolean isDeleted;

    /**
     * 店铺选中状态
     */
    @ApiModelProperty("店铺选中状态 false true")
    private Boolean isCheck;

    /**
     * 商品选中状态
     */
    @ApiModelProperty("商品选中状态 false true")
    private Boolean isChecked;
    /**
     * 成交价格
     */
    @ApiModelProperty("成交价格")
    private BigDecimal transactionPrice;

    /**
     * 规格图片
     */
    @ApiModelProperty("规格图片")
    @TableField(value = "sotreimg")
    private String sotreimg;


    public String getSotreimg() {
		return sotreimg;
	}

	public void setSotreimg(String sotreimg) {
		this.sotreimg = sotreimg;
	}

	public Boolean getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

	public Boolean getIsCheck() {
		return isCheck;
	}

	public void setIsCheck(Boolean isCheck) {
		this.isCheck = isCheck;
	}

	public Boolean getIsChecked() {
		return isChecked;
	}

	public void setIsChecked(Boolean isChecked) {
		this.isChecked = isChecked;
	}


	public BigDecimal getTransactionPrice() {
		return transactionPrice;
	}

	public void setTransactionPrice(BigDecimal transactionPrice) {
		this.transactionPrice = transactionPrice;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId;
    }

    public String getCommoditySpecId() {
        return commoditySpecId;
    }

    public void setCommoditySpecId(String commoditySpecId) {
        this.commoditySpecId = commoditySpecId;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }


    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }


    public String getSellUserId() {
        return sellUserId;
    }

    public void setSellUserId(String sellUserId) {
        this.sellUserId = sellUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy;
    }

    public Boolean getDeleted() {
        return isDeleted;
    }

    public void setDeleted(Boolean deleted) {
        isDeleted = deleted;
    }

    public Boolean getCheck() {
        return isCheck;
    }

    public void setCheck(Boolean check) {
        isCheck = check;
    }

    public Boolean getChecked() {
        return isChecked;
    }

    public void setChecked(Boolean checked) {
        isChecked = checked;
    }

    /**
     * 主键值
     */
    @Override
    protected Serializable pkVal() {
        return null;
    }
}
